package extendTest;

import java.util.HashMap;
import java.util.Map;

import org.junit.Test;

public class TestParent {
	@Test
	public void test(){
		SonClassA a = new SonClassA();
		SonClassB b = new SonClassB();
		a.printString();
		a.printint();
		b.printString();
		b.printint();
		a.i++;
		a.string = "aaaaa";
		a.printString();
		a.printint();
		b.printString();
		b.printint();
		Map<String, String> map = new HashMap<String, String>();
		String keyString = "xxx";
		map.put("xxx", keyString);
		keyString = "yyy";
		System.out.println(map.get("xxx"));
	}
}
